package com.yhos.platform.oopston.core.exception;

public class BusinessException extends RuntimeException {

    private String errorCode;

    public String getErrorCode() {
        return this.errorCode;
    }

    public BusinessException(){
        super();
    }

    public BusinessException(String errorMessage) {
        super(errorMessage);
    }

    public BusinessException(String errorMessage, Throwable cause) {
        super(errorMessage, cause);
    }

    public BusinessException(String errorMessage, String errorCode) {
        super(errorMessage);
        this.errorCode = errorCode;
    }

    public BusinessException(String errorMessage, String errorCode, Throwable cause) {
        super(errorMessage, cause);
        this.errorCode = errorCode;
    }
}
